home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Classes / Date.as < prev    next >
Encoding:
Text File  |  2004-06-14  |  5.3 KB  |  42 lines

  1. class Date
  2. {
  3.  
  4.     function getDate()                                                   // Returns the day of the month (an integer from 1 to 31) of the specified Date object according to local time. Local time is determined by the operating system on which Flash Player is running.
  5.     function getDay()                                                    // Returns the day of the week (0 for Sunday, 1 for Monday, and so on) of the specified Date object according to local time.
  6.     function getFullYear()                                               // Returns the four-digit year according to local time.
  7.     function getHours()                                                  // Returns the hour according to local time.
  8.     function getMilliseconds()                                           // Returns the milliseconds according to local time.
  9.     function getMinutes()                                                // Returns the minutes according to local time.
  10.     function getMonth()                                                  // Returns the month according to local time.
  11.     function getSeconds()                                                // Returns the seconds according to local time.
  12.     function getTime()                                                   // Returns the number of milliseconds since midnight January 1, 1970, universal time.
  13.     function getTimezoneOffset()                                         // Returns the difference, in minutes, between the computer's local time and the universal time.
  14.     function getUTCDate()                                                // Returns the day (date) of the month according to universal time.
  15.     function getUTCDay()                                                 // Returns the day of the week according to universal time.
  16.     function getUTCFullYear()                                            // Returns the four-digit year according to universal time.
  17.     function getUTCHours()                                               // Returns the hour according to universal time.
  18.     function getUTCMilliseconds()                                        // Returns the milliseconds according to universal time.
  19.     function getUTCMinutes()                                             // Returns the minutes according to universal time.
  20.     function getUTCMonth()                                               // Returns the month according to universal time.
  21.     function getUTCSeconds()                                             // Returns the seconds according to universal time.
  22.     function getYear()                                                   // Returns the year according to local time.
  23.     function setDate(date)                                               // Sets the day of the month according to local time. Returns the new time in milliseconds.
  24.     function setFullYear(year, month, date)                              // Sets the full year according to local time. Returns the new time in milliseconds.
  25.     function setHours(hour)                                              // Sets the hour according to local time. Returns the new time in milliseconds.
  26.     function setMilliseconds(millisecond)                                // Sets the milliseconds according to local time. Returns the new time in milliseconds.
  27.     function setMinutes(minute)                                          // Sets the minutes according to local time. Returns the new time in milliseconds.
  28.     function setMonth(month, Date)                                       // Sets the month according to local time. Returns the new time in milliseconds.
  29.     function setSeconds(second)                                          // Sets the seconds according to local time. Returns the new time in milliseconds.
  30.     function setTime(milliseconds)                                       // Sets the date in milliseconds. Returns the new time in milliseconds.
  31.     function setUTCDate(date)                                            // Sets the date according to universal time. Returns the new time in milliseconds.
  32.     function setUTCFullYear(year, month, date)                           // Sets the year according to universal time. Returns the new time in milliseconds.
  33.     function setUTCHours(hour, minute, second, millisecond)              // Sets the hour according to universal time. Returns the new time in milliseconds.
  34.     function setUTCMilliseconds(millisecond)                             // Sets the milliseconds according to universal time. Returns the new time in milliseconds.
  35.     function setUTCMinutes(minute, second, millisecond)                  // Sets the minutes according to universal time. Returns the new time in milliseconds.
  36.     function setUTCMonth(month, date)                                    // Sets the month according to universal time. Returns the new time in milliseconds.
  37.     function setUTCSeconds(second, millisecond)                          // Sets the seconds according to universal time. Returns the new time in milliseconds.
  38.     function setYear(year)                                               // Sets the year according to local time.
  39.     function toString()                                                  // Returns a string value representing the date and time stored in the specified Date object.
  40.     function UTC(year, month, date, hour, minute, second, millisecond)   // Returns the number of milliseconds between midnight on January 1, 1970, universal time, and the specified time.
  41. }
  42.